import random

class food(object):
	def __init__(self):
		self.x=0
		self.y=0
	
	def makeFood(self, snake, redge, bedge):
		while 1:
			self.x = random.randint(0,redge)/10*10
			self.y = random.randint(0,bedge)/10*10
			
			if not snake.isBody(self.x, self.y):				
				break